#!/usr/bin/php -Cq
<?php
require '../Missus.php';
class XMPPBot extends Missus {
   protected function onConnect() {
        $this->showPresence();
        echo "\n-- \o/ Hello ! --\n";
    }
    protected function onReceivedContent() {
        echo sprintf("\n-- I received this, tell me how to deal with it : \n%s --\n", $this->received);
    }
}
try {
    $bot = new XMPPBot('user', 'pass', 'domain.tld');
    $bot->logEvents()->setPersistent()->connect();
}
catch(Exception $e) {
    die($e->getMessage()); 
}
?>